//
//  MoreGamesViewController.h
//  iXorsPattern
//
//  Created by Dmitry Tatarinov on 2/5/15.
//  Copyright (c) 2015 Huly-Gun Soft. All rights reserved.
//

#import "MoreGamesCell.h"


@interface MoreGamesCell()

@end

@implementation MoreGamesCell

@synthesize titleLabel, infoLabel;
@synthesize imageView ;

- (id)initWithStyle:(UITableViewCellStyle)style 
    reuseIdentifier:(NSString *)reuseIdentifier{
   
   self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
   
   if (self)
   {
      
       UIView *content = self.contentView;
       
       imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, content.frame.size.height, content.frame.size.height)];
       [content addSubview:imageView];
   
       titleLabel = [[UILabel alloc] init];
       titleLabel.frame = CGRectMake(imageView.frame.size.width, 0.0, content.frame.size.width - imageView.frame.size.width, content.frame.size.height/2);
       titleLabel.textColor = [UIColor blackColor];
       titleLabel.textAlignment = NSTextAlignmentLeft;
       titleLabel.font = [UIFont boldSystemFontOfSize:16.0f];
       titleLabel.backgroundColor = [UIColor clearColor];
       [content addSubview:titleLabel];
   
       infoLabel = [[UILabel alloc] init];
       infoLabel.frame = CGRectMake(imageView.frame.size.width, content.frame.size.height/2, content.frame.size.width - imageView.frame.size.width, content.frame.size.height/2);
       infoLabel.textColor = [UIColor blackColor];
       infoLabel.textAlignment = NSTextAlignmentLeft;
       infoLabel.font = [UIFont boldSystemFontOfSize:8.0f];
       infoLabel.backgroundColor = [UIColor clearColor];
       [content addSubview:infoLabel];
   }
   
   return self;
}

@end